//
//  GCMQJXMGLTableViewCell.m
//  GeeCityManager
//
//  Created by 聚城科技 on 16/8/15.
//  Copyright © 2016年 聚城科技. All rights reserved.
//

#import "GCMQJXMGLTableViewCell.h"

@implementation GCMQJXMGLTableViewCell{
    
    UIView *_bgView;
    UILabel *_contentLabel;
    UILabel *_numberLabel;
    UILabel *_timeLabel;
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if ([super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self createUI];
    }
    return self;
}

-(void)createUI{
    
    _bgView = [[UIImageView alloc]init];
    _bgView.frame =CGRectMake(10, 5,SCREEN_WIDTH - 20, 40);
    _bgView.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:_bgView];
    
    _contentLabel = [[UILabel alloc]init];
    _contentLabel.frame = CGRectMake(10, 5,(self.contentView.bounds.size.width )/3*2, 30);
    _contentLabel.font = [UIFont systemFontOfSize:15];
    //    _contentLabel.backgroundColor = [UIColor redColor];
    _contentLabel.textAlignment = NSTextAlignmentLeft;
    [_bgView addSubview:_contentLabel];
    
    _numberLabel = [[UILabel alloc]init];
    _numberLabel.frame = CGRectMake(self.contentView.bounds.size.width  -80, 5, 80, 30);
    _numberLabel.font = [UIFont systemFontOfSize:13];
    _numberLabel.textColor = [UIColor colorWithRed:0.58 green:0.65 blue:0.65 alpha:1.00];
    _numberLabel.textAlignment = NSTextAlignmentRight;
    [_bgView addSubview:_numberLabel];
        
}

-(void)setDic:(NSDictionary *)dic{
    
    NSDictionary *dict = [[NSDictionary alloc]init];
    dict  = dic;
    _contentLabel.text = [dict valueForKey:@"rh_name"];
//    _numberLabel.text = [NSString stringWithFormat:@"总分:%@",[dict valueForKey:@"fen"]];
    
}

@end
